package org.consul.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "consul-producer" , fallback = FeignServiceHystric.class)//value值是指定调用哪个服务
public interface FeignService {
	
	
	 @RequestMapping(value = "/producer",method = RequestMethod.GET)
	 //@GetMapping("/producer")
	    String producer();
	 
	 @RequestMapping(value = "/home",method = RequestMethod.GET)
	 String home();
}
